﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CoolChat
{
    public partial class today : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NewMethod();
        }

        private void NewMethod()
        {

            ChatUser u = Tools.getCurUser();
            if (u == null)
                return;
            List<ChatMessage> li = Dbo.SelectTodayMsgs(u.UserName);
            string json = LitJson.JsonMapper.ToJson(li.ToArray());
            Response.Write(json);
        }
    }
}